package cn.net.wanji.enums;

public enum LabelType {
    OBU("010101", "多卡多签"),
    CPC("010102", "多卡多签"),
    OBUANDCPC("010103", "多卡多签"),
    CARD("010402", "车卡不符");




    private final String id;
    private final String name;

    LabelType(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public static String getNameFromId(String id) {
        for (LabelType carModel : LabelType.values()) {
            if (carModel.getId().equals(id)) {
                return carModel.getName();
            }
        }
        return "未知"; // 如果没有找到匹配的车型ID，则返回未知
    }
}
